<template>
	<view class="content">
		<view class="content_list">
			<image mode="aspectFit" src="https://img1.cnpowder.com.cn/img/daily/2019/12/18/172822_963427_class_userheader.jpg.thumb.jpg"></image>
			<view class="right">
				<view class="news">
					<view class="name">郭有才</view>
					<view class="text">中国粉体网有限公司 员工</view>
					<view class="text">手机：</view>
					<view class="text">发起人：</view>
					<view class="text">管理员：否</view>
				</view>
				<uv-icon @click="showSet()" name="setting-fill" color="#555" size="22"></uv-icon>
			</view>
		</view>
		<view class="content_list">
			<image mode="aspectFit" src="https://img1.cnpowder.com.cn/img/daily/2019/12/18/172822_963427_class_userheader.jpg.thumb.jpg"></image>
			<view class="right">
				<view class="news">
					<view class="name">郭有才</view>
					<view class="text">中国粉体网有限公司 员工</view>
					<view class="text">手机：</view>
					<view class="text">发起人：</view>
					<view class="text">管理员：否</view>
				</view>
				<uv-icon name="setting-fill" color="#555" size="22"></uv-icon>
			</view>
		</view>
		<view class="setBox" v-if="setShow">
			<view class="bj" @click="setShow = false"></view>
			<view class="box">
				<view class="set">
					<view class="list" @click="link('/comm/card/card')">查看名片</view>
					<view class="list">设为管理员</view>
					<view class="list">移除成员</view>
				</view>
				<view class="hide" @click="setShow = false">取消</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		link
	} from '@/utils/utils.js'
	import {
		ref,
		defineProps,
	} from 'vue'
	const setShow = ref(false)
	const setIndex = ref()
	const showSet = (i)=>{
		setIndex.value = i
		setShow.value = true
	}
	const set = ()=>{
		
	}
</script>

<style lang="scss" scoped>
	.content{
		width: 100%;
		height: 100%;
		&_list{
			width: calc(100% - 60rpx);
			padding: 30rpx;
			border-bottom: 1px solid #ebecf4;
			display: flex;
			image{
				width: 100rpx;
				height: 100rpx;
				border-radius: 100%;
			}
			.right{
				width: calc(100% - 120rpx);
				display: flex;
				align-items: center;
				.news{
					flex: 1;
					margin-left: 20rpx;
					margin-right: 20rpx;
					.name{
						font-size: 32rpx;
						font-weight: bold;
					}
					.text{
						margin-top: 15rpx;
						font-size: 28rpx;
						color: #666;
					}
				}
			}
		}
		.setBox{
			width: 100%;
			height: 100%;
			position: fixed;
			z-index: 999;
			left: 0;
			top: 0;
			.bj{
				width: 100%;
				height: 100%;
				position: absolute;
				background: rgba(0, 0, 0, .2);
			}
			.box{
				width: calc(100% - 60rpx);
				padding: 30rpx;
				position: absolute;
				bottom: 0;
				left: 0;
				.set{
					width: 100%;
					.list{
						width: 100%;
						height: 100rpx;
						background: #ededed;
						display: flex;
						align-items: center;
						justify-content: center;
						font-size: 28rpx;
						margin-top: 2rpx;
					}
					.list:nth-child(1){
						border-radius: 8px 8px 0 0;
					}
					.list:nth-last-child(1){
						border-radius: 0 0 8px 8px;
					}
				}
				.hide{
					width: 100%;
					height: 100rpx;
					background: #fff;
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 36rpx;
					color: #3478f6;
					font-weight: bold;
					margin-top: 30rpx;
					border-radius: 8px;
				}
			}
		}
	}
</style>